create ${type} if not exists ${name}
with (kafka_topic = '${topic}', key_format = '${keyFormat}', value_format = '${valueFormat}'
<#if partitions??>, partitions = ${partitions}</#if><#if replicas??>, replicas = ${replicas})</#if>
<#if statement??>
    as
    ${statement}
    EMIT CHANGES
</#if>
;